﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="HistroyTradeRecord.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Collection.HistroyTradeRecord" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="HistroyTradeRecord.aspx">历史交易记录</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table width="100%">
            <tr>
                <td align="right">
                    企业名称：
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtCompanyName" Width="145px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnQuery" Text="查询" CssClass="btn" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView runat="server" ID="gvwHistroyList" CssClass="mainlist" AutoGenerateColumns="false"
        EmptyDataText="暂无有过交易记录的企业">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%>
                </ItemTemplate>
                <ItemStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName" HeaderText="企业名称" />
            <asp:BoundField DataField="payAmount" HeaderText="应付总额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="actualAmount" HeaderText="实付总额" DataFormatString="{0:F2}" />
            <asp:BoundField DataField="oweAmount" HeaderText="历史欠款" DataFormatString="{0:F2}" Visible="false"/>
            <asp:BoundField DataField="PayCount" HeaderText="结算单数" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <a href="InvoicePayList.aspx?companyId=<%# Eval("CompanyID_PS") %>">
                        <asp:Label runat="server" ID="lblDetail" Text="查看详细" ToolTip="进入查看与该企业有关的所有结算单"></asp:Label></a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>此列表为与我医疗机构有过交易记录的企业，可进入相应企业查看与该企业有关的所有结算单。</span></li>
        </ul>
    </div>
</asp:Content>
